<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<head>
<title>Search Contact</title>
<link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css" />
</head>
<body>
	<div class="navbar navbar-default navbar-fixed-top">
		<div class="container">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle"></button>
				<a class="navbar-brand">Projet MDOC</a>
			</div>
			<div class="navbar-collapse collapse">
				<ul class="nav navbar-nav">
					<li class="active"><a href="mainPage.xhtml">Home</a></li>
					<li class="active"><a href="addContact.xhtml">Add Contact</a></li>
					<li class="active"><a href="searchContact.xhtml">Modify/Delete
							Contact</a></li>
					<li class="active"><a href="searchContact.xhtml">Search
							Contact</a></li>
				</ul>
			</div>
		</div>
	</div>
	<br />
	<br />
	<br />
	<h1 class="form-signin-heading" style="padding-left: 20px;">Enter
		the informations of the contact you want to modify or delete</h1>
	<div class="container">
		<div style="width: 600px; padding-top: 20px;">
			<h:form class="form-horizontal">
				<div class="form-group">
					<label class="col-sm-4 control-label">First Name :</label>
					<div class="col-sm-8">
						<h:inputText value="#{searchContactController.contact.firstName}"
							class="form-control" />
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-4 control-label">Last Name:</label>
					<div class="col-sm-8">
						<h:inputText value="#{searchContactController.contact.lastName}"
							class="form-control" />
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-4 control-label">Email :</label>
					<div class="col-sm-8">
						<h:inputText value="#{searchContactController.contact.email}"
							class="form-control" />
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-4 control-label">Street :</label>
					<div class="col-sm-8">
						<h:inputText
							value="#{searchContactController.contact.address.street}"
							class="form-control" />
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-4 control-label">City :</label>
					<div class="col-sm-8">
						<h:inputText
							value="#{searchContactController.contact.address.city}"
							class="form-control" />
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-4 control-label">Zip :</label>
					<div class="col-sm-8">
						<h:inputText
							value="#{searchContactController.contact.address.zip}"
							class="form-control" />
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-4 control-label">Country :</label>
					<div class="col-sm-8">
						<h:inputText
							value="#{searchContactController.contact.address.country}"
							class="form-control" />
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-4 control-label">Téléphone :</label>
					<div class="col-sm-8">
						<h:inputText value="#{searchContactController.phone}"
							class="form-control" />
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-4 control-label">Siret :</label>
					<div class="col-sm-8">
						<h:inputText value="#{searchContactController.siret}"
							class="form-control" />
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-offset-4">
						<label>Famille</label>&nbsp;
						<h:selectBooleanCheckbox
							value="#{searchContactController.famille}" />
						&nbsp; <label>Travail</label>&nbsp;
						<h:selectBooleanCheckbox
							value="#{searchContactController.travail}" />
						&nbsp; <label>Amis</label>&nbsp;
						<h:selectBooleanCheckbox value="#{searchContactController.amis}" />
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-offset-4 col-sm-8">
						<h:commandButton action="#{searchContactController.searchContact}"
							value="Modify Contact" type="submit" class="btn btn-primary" />
						&nbsp;
						<h:commandButton action="reset" value="Reset" type="reset"
							class="btn btn-danger" />
					</div>
				</div>
			</h:form>
		</div>
	</div>
</body>
</html>